package com.lf.tools;

import com.lf.activities.R;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;

///** �?�?��㈣繋鍔ㄧ�?*/
public class FirstWelcomePage extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		//判断是否是第�?��运行
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
//		SharedPreferences sharedPreferences = this.getSharedPreferences("share", MODE_PRIVATE); 
//		boolean isFirstRun = sharedPreferences.getBoolean("isFirstRun", true); 
//		Editor editor = sharedPreferences.edit(); 
//		if (isFirstRun) 
//		{ 
		
		
//		editor.putBoolean("isFirstRun", false); 
//		editor.commit(); 
		
		setContentView(R.layout.strat);
		new Handler().postDelayed(new Runnable() {

			@Override
			public void run() {
				Intent intent = new Intent(FirstWelcomePage.this, GuidePages.class);
				startActivity(intent);
				FirstWelcomePage.this.finish();
			}
		}, 2000);
//		} else 
//		{ 
//			//Intent intent = new Intent(FirstWelcomePage.this, MainActivity003.class);
//			Intent intent = new Intent(FirstWelcomePage.this, GuidePages.class);
//			startActivity(intent);
//			FirstWelcomePage.this.finish();
//		} 
	}
}
